package edu.ucsb.cs176b.android;

/*
 * A mediator with a static reference to MainMenu
 */


public class MenuMediator {
    static MainMenu menu;
    
    public MenuMediator(){
        
    }
    
    public static void setMenuMediator(MainMenu m){
    	menu = m;
    }
    
    public static void gameOn(){
    	if (menu != null)
    		menu.gameOn();
    }
    
    public static void showAlert(String text){
    	if (menu != null)
    		menu.showAlert(text);
    }
    
    public static void gameOff(){
    	if (menu != null)
    		menu.gameOff();
    }   
}
